package interfaces;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;
import interfaces.PantallaPrincipal;



public class MenuPrincipalAction extends AbstractAction {

	private static final long serialVersionUID = 1L;
	private PantallaPrincipal frame;
	
	public MenuPrincipalAction(PantallaPrincipal frame){
		super();
		putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_M));
		this.frame=frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		frame.getListaPaneles().clear();
		frame.cambiarCU(new MenuUsuario(frame));
    }
}


